
package com.application.workbench.struts.form;

import javax.servlet.http.HttpServletRequest;

import org.apache.commons.lang.builder.ReflectionToStringBuilder;
import org.apache.commons.lang.builder.ToStringStyle;
import org.apache.struts.action.ActionErrors;
import org.apache.struts.action.ActionForm;
import org.apache.struts.action.ActionMapping;

public class WorkBenchForm extends ActionForm {

	/** serialVersionUID */
	protected static final long serialVersionUID = -1L;

	public WorkBenchForm() {

	}
    
	/**
	 * 类型
	 */
	private Long type;
	
	/**
	 * 类型名称
	 */
	private String typeName;
	
	/**
	 * 业务ID
	 */
	private String bussinessID;
	
	/**
	 * 业务表述
	 */
	private String bussinessName;
	
	private String workitemID;
	
	private String instanceID;
    
	private String inputtimeStr;
	/**
	 *用户ID 
	 */
	private Long userID;
	
	/**
	 * 结题预警提前天数
	 */
	private String warningAppance;
	
	/**
	 * 专利预警提前月
	 */
	private String warningPatent;
	/**
	 * Method validate
	 * 
	 * @param mapping
	 * @param request
	 * @return ActionErrors
	 */
	public ActionErrors validate(ActionMapping mapping, HttpServletRequest request) {
		// TODO Auto-generated method stub
		return null;
	}

	/**
	 * Method reset
	 * 
	 * @param mapping
	 * @param request
	 */
	public void reset(ActionMapping mapping, HttpServletRequest request) {

	}

	public String toString() {
		return ReflectionToStringBuilder.toString(this, ToStringStyle.MULTI_LINE_STYLE);
	}

	public Long getType() {
		return type;
	}

	public void setType(Long type) {
		this.type = type;
	}

	public String getTypeName() {
		return typeName;
	}

	public void setTypeName(String typeName) {
		if(typeName!=null){
		    if(typeName.length()==4){
		    	typeName = "  " + typeName + "  ";
		    }
		}
		this.typeName = typeName;
	}

	public String getBussinessID() {
		return bussinessID;
	}

	public void setBussinessID(String bussinessID) {
		this.bussinessID = bussinessID;
	}

	public String getBussinessName() {
		return bussinessName;
	}

	public void setBussinessName(String bussinessName) {
		this.bussinessName = bussinessName;
	}

	public Long getUserID() {
		return userID;
	}

	public void setUserID(Long userID) {
		this.userID = userID;
	}

	public String getWorkitemID() {
		return workitemID;
	}

	public void setWorkitemID(String workitemID) {
		this.workitemID = workitemID;
	}

	public String getInstanceID() {
		return instanceID;
	}

	public void setInstanceID(String instanceID) {
		this.instanceID = instanceID;
	}

	public String getWarningAppance() {
		return warningAppance;
	}

	public void setWarningAppance(String warningAppance) {
		this.warningAppance = warningAppance;
	}

	public String getInputtimeStr() {
		return inputtimeStr;
	}

	public void setInputtimeStr(String inputtimeStr) {
		this.inputtimeStr = inputtimeStr;
	}

	public String getWarningPatent() {
		return warningPatent;
	}

	public void setWarningPatent(String warningPatent) {
		this.warningPatent = warningPatent;
	}
}
